﻿using System.Web.Security;

namespace Vidh.SimplyToDo.Controllers.Helpers
{
    public class FormsAuthenticationHelper : IFormsAuthenticationHelper
    {
        public void Authenticate(string userName, bool isPersistentCookie)
        {
            FormsAuthentication.SetAuthCookie(userName, isPersistentCookie);
        }

        public void SignOut()
        {
            FormsAuthentication.SignOut();
        }
    }
}